package com.freesky.common.dao.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("tb_role_perm")
public class RolePerm extends Model<RolePerm> {

    private Integer id;

    private Integer roleId;

    private Integer permissionId;

    public RolePerm() {}
    public RolePerm(Integer id) {
        this.id = id;
    }

    @Override
    protected Serializable pkVal() {
        return id;
    }
}